﻿@{
    Layout = null;
}
@using EnterpriseFund.Common;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Top</title>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
        <style type="text/css">
        *
        {
            margin: 0 auto;
            padding: 0;
        }
        .dlny
        {
            font-size: 14px;
            color: #FFFFFF;
        }
        .dlny a
        {
            font-size: 14px;
            color: #FFFFFF;
            text-decoration: none;
        }
        .dlny a:hover
        {
            font-size: 14px;
            color: #002036;
            text-decoration: none;
        }
        .dlnyhei
        {
            color: #000000;
            font-size: 12px; 
        }
    </style>
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script>
        function LogExit() {
            if (confirm("确定退出吗?")) {
                window.location.href = rootPath + "/Index/LogExit";

            }
            else {
                return false;
            }
        }

        function onClicks() {
            parent.contentframe.toZm();
        }


        function ValueChanged(obj) {
            $.ajax({
                type: 'POST',
                url: rootPath + "/Index/SetYear",
                data: { year: obj.options[obj.selectedIndex].value },
                success: function (result) {
                    if (result == "ok") {
                        parent.window.location.reload();
                    }
                }
            });
        }
    
    </script>
</head>
<body>
  <table width="100%" cellpadding="0" cellspacing="0" style="background: url(@Url.Content("~/Content/images/header01.jpg", true)) repeat-x left;">
        <tr>
            <td width="40%">
                <img src="@Url.Content("~/Content/images/header02.jpg", true)" width="428" height="40" /></td>
                     <td align="center" width="10%">
               
                    <font size="2" color="white">年份:</font><select  onchange="ValueChanged(this)" >
                    @foreach (string year in ViewData["YearData"] as List<string>)
                    {
                        if (year == ViewData["selYear"].ToString())
                        {
                                <option selected="selected" value=@year>@year</option> 
                        }
                        else
                        {
                               <option  value=@year>@year</option> 
                        }
                    }
                    </select>
           </td>
            <td width="50%" align="right" valign="middle" >
                <table width="178" align="right" cellpadding="0" cellspacing="0" class="dlny">
                    <tr>
                        <td width="17" align="left" >
                            <img src="@Url.Content("~/Content/images/dlicon.jpg", true)" width="17" height="17" /></td>
                        <td width="75" align="left" class="wi" >
                            <a href="#"  onclick="onClicks()"> 桌面</a></td>
                        <td width="17" align="left">
                            <img src="@Url.Content("~/Content/images/dlicon6.jpg", true)" width="17" height="17" /></td>
                        <td width="86" align="left">
                            <a href="#" onclick="LogExit()">退出</a></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
